<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" class="form-control" name="row[name]" type="text" value="{$row.name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('基准项模板')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-asbi_template_ids" data-multiple="true" data-rule="required"  min="0" data-field="template_name" data-source="auth/asbitemplate/index" class="form-control selectpage" name="row[asbi_template_ids]" type="text" value="{$row.asbi_template_ids|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">人员:</label>
        <div class="col-xs-12 col-sm-8">
            <a href="javascript:;" data-multiple="false" data-area='["80%", "80%"]' id="select_salary" class="btn btn-info select">请选择人员</a>
        </div>
    </div>

    <div class="form-group" id="list_content">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <div class="box" style="">
                <div class="box-header with-border">
                    <h3 class="box-title">人员列表</h3>
                </div>
                <div class="box-body">
                    <table class="table table-bordered" id="benchmark-table">
                        <thead>
                        <tr>
                            <th>老师id</th>
                            <th>老师姓名</th>
                            <th>操作</th>
                        </tr>
                        </thead>
                        <tbody id="list_div">
                            <?php foreach($admin_list as $a){ ?>
                                <tr id="data_{$a.id}">
                                    <td><input type="hidden" name="row[admin_id][]" value="{$a.id}">{$a.id}</td>
                                    <td>{$a.nickname}</td>
                                    <td><a href="javascript:void()" onclick="$('#data_{$a.id}').remove()" data-operate="remove" class="btn btn-sm btn-warning">移除</a></td>
                                </tr>
                            <?php } ?>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
